package com.hairline.hairlinemarket.service.impl;

import com.hairline.hairlinemarket.bean.MarketAd;
import com.hairline.hairlinemarket.bean.MarketAdExample;
import com.hairline.hairlinemarket.mapper.MarketAdMapper;
import com.hairline.hairlinemarket.mapper.MarketAdminMapper;
import com.hairline.hairlinemarket.service.AdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Author:杨小凯
 * Date:2023-04-20 18:46
 * Description:<描述>
 */
@Service
public class AdServiceImpl implements AdService {

    @Autowired
    private MarketAdMapper marketAdMapper;
    @Override
    public List queryIndex() {
        List<MarketAd> marketAds = marketAdMapper.selectByExample(new MarketAdExample());
        return marketAds;
    }
}
